import axios from './request'

// 请求轮播图数据
export const getBannerData = ()=>{return axios.get('/banner')}

//请求发现icon
export const getIcon = ()=> axios.get('/homepage/dragon/ball')

// 发送验证码
export const sendCaptcha = (params)=> axios.get('/captcha/sent',{params})

//登录接口
export const login = (params)=> axios.get('/login/cellphone',{params})

//获取用户信息
export const getUserInfo = ()=> axios.get('/user/subcount')

//获取用户详情
export const getUserDetail = (params)=> axios.get('/user/detail',{params})

//获取用户歌单
export const getUserPlayList = (params)=> axios.get('/user/playlist',{params})

//获取歌单详情
export const getPlayListDetail = (params)=> axios.get('/playlist/detail',{params})


//获取歌曲详情
export const getSongDetail = (params)=> axios.get('/song/detail',{params})

// 获取歌曲url
export const getMusicUrl = (params)=> axios.get('/song/url',{params})

// 获取推荐歌单
export const getRecommendApi = () => axios.get('/recommend/resource')

// 获取热门话题
export const getHotTalkApi = () => axios.get('/hot/topic')

//退出登录
export const logout = () => axios.get('/logout')

// 获取歌词
export const getlyric = (params)=> axios.get('/lyric',{params})

// 搜索
export const search = (params)=> axios.get('/search',{params})

//搜索建议
export const getSearchSugg = (params)=> axios.get('/search/suggest',{params})

//热门搜索
export const hotSearch = () => axios.get('/search/hot')